import {isObject} from "./helper";
import {mutableHandles} from ".";

export function reactive(o: any) {
  if (!isObject(o)) {
    console.error("object only");
    return o;
  }

  return new Proxy(o, mutableHandles);
}
